<template>
	<view>
		<u-navbar :is-back="false" title="" :background="background">
			<view class="slot-wrap">
				<image src="../../static/uview/common/icon.png" class="indexlogo"></image>
				<view class="projectName">
					寺庙名称
				</view>
				<view class="exmple">
					互联网宗教信息服务许可证
					<br>
					川（2023）0000000
				</view>
			</view>
		</u-navbar>
		<view class="content">
			<view style="padding: 10px;" v-html="text"></view>

		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			background: {
				backgroundColor: '#BE9567',
			},
			text: ''
		};
	},
	onLoad(options) {
		//获得法师简介
		this.getMonkInfo()
	},
	methods: {
		back() {
			uni.navigateBack({
				delta: 1
			})
		},
		getMonkInfo() {
			//获取寺庙简介
			uni.request({
				url: this.$url + '/api/shimiao/masterInfo/info?id=1', method: 'GET', data: {}, success: (res) => {
					console.log(res)
					if (res.data.code == 200) {
						this.text = res.data.data.info
					} else {
						uni.showToast({
							title: res.data.msg,
							icon: 'none'
						})
					}
				}
			})
		}

	},
}
</script>
<style lang="scss" scoped>
.slot-wrap {
	// padding: 15px 10px 10px 10px;
	display: flex;
	color: #fff;
	align-items: center;
}

.indexlogo {
	width: 30px;
	height: 30px;
	margin-left: 15px;
}

.projectName {
	font-size: 18px;

	margin-left: 10px;
}

.exmple {
	font-size: 10px;
	margin-left: 30px;
}


.content {
	width: 100vw;
	height: calc(100vh - 44px);
	background: #FBF5EA;
	overflow: scroll;
}
</style>